package com.jt.service;

import com.jt.dao.UserDao;
import com.jt.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService{


    @Autowired
    private UserDao userDao;

/*    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }*/

    @Override
    public void addUser(User user) {
        String name=user.getName()+"+加工...";
        user.setName(name);
        userDao.addUser(user);
    }

}
